/**
 * @author gaopeng
 * @date 2019/12/12 11:03 下午
 */
public abstract class AbstractMediator {
    protected Purchase purchase;
    protected Sale sale;
    protected Stock stock;

    public AbstractMediator() {
        /*this.purchase = new Purchase(this);
        this.sale = new Sale(this);
        this.stock = new Stock(this);*/
    }

    public void setPurchase(Purchase purchase) {
        this.purchase = purchase;
    }

    public void setSale(Sale sale) {
        this.sale = sale;
    }

    public void setStock(Stock stock) {
        this.stock = stock;
    }

    protected abstract void execute(String method,Object ...obj);
}
